#!/bin/bash
function check() {
    python $1 $2 > t.txt
    read n < t.txt
    rm -f t.txt

    if [ $n -eq $3 ]; then
        echo "Case 1: Pass."
    else
        echo "Case 1: Fail."
        exit 1
    fi
}

check $1 http://www.googel.com/ 257
check $1 http://www.googel/ -1

